package io.renren.common.exception;

/**
 * @author: xiaomi
 * @date: 2022/1/27
 * @description:
 */
public enum BizCodeEnum {


    /**
     * B
     * 未知异常
     */
    UNKNOWN_EXCEPTION(10000, "系统未知异常！"),
    /**
     * 参数校验异常
     */
    VALID_EXCEPTION(10001, "参数格式校验失败！"),

    /**
     * 对于实体类找不到的通用异常
     */
    ENTITY_NOT_FOUND(10002, "实体类不存在异常！"),


    DIRECTORY_NOT_FOUND(11001, "目录不存在异常！"),

    FILE_NOT_FOUND(11001, "文件不存在异常！"),

    FFMPEG_NOT_ALIVE(12001, "ffmpeg 存活异常！"),

    FFMPEG_TARGET(12002, "ffmpeg 最后生成文件异常！"),

    FFMPEG_IO(12003, "ffmpeg IO异常！"),

    FFMPEG_INTERRUPT(12004, "ffmpeg 中断异常！"),

    FFMPEG_EXECUTE(12005, "ffmpeg 执行异常！"),

    WX_LOGIN_EXECUTE(13001, "微信登录异常！"),

    WX_NO_USE_EXECUTE(13002, "没有该用户！"),

    EVA_LEVEL_EXECUTE(14001, "评价类型异常！"),

    SCHEDULE_NOT_EXIST(14002, "计划不存在！"),
    ;

    //region    enum definition
    /**
     * 错误码
     */
    private int code;
    /**
     * 消息
     */
    private String msg;

    BizCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
    //endregion
}
